<template>
  <div class="content-wrap">
    <header>CSDN 活在风浪里</header>
    <div class="content-main">
      <div class="left">
        <div>1</div>
        <div>2</div>
        <div>3</div>
      </div>
      <div class="center-map-wrap">
        <img src="@/assets/images/map.png" class="map" />
        <img src="@/assets/images/link.png" class="link" />
        <div class="map-main">
          <router-view></router-view>
        </div>
      </div>
      <div class="right">
        <div>4</div>
        <div>5</div>
        <div>6</div>
      </div>
    </div>
  </div>
</template>
<script setup></script>
<style lang="scss" scoped>
.content-wrap {
  width: 100%;
  height: 100%;
  // 最大最小宽/高 不能转rem
  min-width: 1536px;
  min-height: 702px;
  margin: 0 auto;
  padding: 0 0.125rem 0.125rem 0.125rem;
  background: url("@/assets/images/view_bg.png") 0 0 / 100% no-repeat;
  animation: zoomInDown .7s;
  @keyframes zoomInDown {
    from {
      opacity: 0;
      -webkit-transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0);
      transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0);
      -webkit-animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
      animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    }

    60% {
      opacity: 1;
      -webkit-transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0);
      transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0);
      -webkit-animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);
      animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);
    }
  }
  header {
    width: 100%;
    height: 1.25rem;
    line-height: 1.25rem;
    font-size: 0.6125rem;
    font-family: 楷体;
    color: #fff;
    text-align: center;
    background: url(@/assets/images/pic-2.png) 20px center/100% 100% no-repeat,
      url(@/assets/images/header_bg_02.png) 0 0/100% no-repeat;
  }
  .content-main {
    display: flex;
    justify-content: space-between;
    height: calc(100% - 1.25rem);
    width: 100%;
    .left,
    .right {
      display: flex;
      flex-direction: column;
      flex: 3;
      height: 100%;
      div {
        flex: 1;
        border: 0.0125rem solid #1bb4f9;
        box-shadow: #1bb4f9 0px 0px 10px 1px inset;
        &:nth-child(2) {
          margin: 0.125rem 0;
        }
      }
    }
    .center-map-wrap {
      position: relative;
      overflow: hidden;
      flex: 5;
      margin: 0 0.125rem;
      background: url("image/home/bg.jpg") no-repeat center center;
      img {
        position: absolute;
      }
      .map {
        animation: run1 50s infinite linear;
        width: 6.25rem;
        height: 6.25rem;
        top: 1.525rem;
        left: 2.5625rem;
      }

      .link {
        width: 7.5rem;
        height: 7.5rem;
        animation: run 45s infinite linear;
        transform-origin: center center;
        z-index: 5;
        top: 1.025rem;
        left: 1.9375rem;
      }

      @keyframes run {
        from {
          transform: rotate(360deg);
        }

        to {
          transform: rotate(-360deg);
        }
      }

      @keyframes run1 {
        from {
          transform: rotate(-360deg);
        }

        to {
          transform: rotate(360deg);
        }
      }
      .map-main {
        position: relative;
        z-index: 10;
        width: 100%;
        height: 100%;
      }
    }
  }
}
</style>
